export default {
  install(Vue) {
    const eventBus = new Vue();
    Vue.prototype.$EventBus = eventBus
    window.addEventListener('resize', (e) => {
      eventBus.$emit('onresize', e)
    })
  }
}